package io.zerous.engine.math

/**
 * Created by Zerous on 2018/9/23.
 */
class Circle(val position: Vector2, var radius: Float) {
    fun includes(px: Float, py: Float): Boolean = position.distance(px, py) <= radius
    fun includes(vec: Vector2): Boolean = position.distance(vec) <= radius

    fun overlaps(other: Circle) = (radius + other.radius) < position.distance(other.position)
}